package com.cimpm.permission.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hby.common.annotation.Remind;
import com.hby.common.annotation.entity.VerifyRepetitionField;

import java.util.Date;

@TableName("permission_data_permission_type")
public class DataPermissionType {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @VerifyRepetitionField
    @TableField(value = "`type_name`")
    private String TypeName;

    @TableLogic
    @TableField(value = "`is_deleted`")
    private Date isDeleted;

    @Version
    @TableField(value = "`version`")
    private Integer version;

    @Override
    public String toString() {
        return "DataPermissionType{" +
                "id=" + id +
                ", TypeName='" + TypeName + '\'' +
                ", isDeleted=" + isDeleted +
                ", version=" + version +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTypeName() {
        return TypeName;
    }

    public void setTypeName(String typeName) {
        TypeName = typeName;
    }

    public Date getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Date isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
